﻿using System.Collections.Generic;
using System.Linq;

namespace KataPotter.Logic
{
    public class CalculatePrice
    {
        public static int CalculateRegularPrice(int[] Books)
        {
            if (Books.Length == 0){return 0;}

            return (Books.Sum()*8);
        }

        public static int CalculateRegularPrice(int BookCount)
        {
            return (BookCount*8);
        }

        public static List<int> CalculateRegularPrice(List<int> SeriesBookCounts)
        {
            var ResultList = new List<int>();

            foreach (var SeriesBookCount in SeriesBookCounts)
            {
                ResultList.Add(SeriesBookCount * 8);
            }

            return ResultList;
        }
    }
}